package com.ibeeking.found.msg.rest.service.mpevent;


import me.chanjar.weixin.common.session.WxSessionManager;
import me.chanjar.weixin.mp.api.WxMpMessageHandler;
import me.chanjar.weixin.mp.api.WxMpService;
import me.chanjar.weixin.mp.bean.message.WxMpXmlMessage;
import me.chanjar.weixin.mp.bean.message.WxMpXmlOutMessage;
import me.chanjar.weixin.mp.builder.outxml.TextBuilder;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import java.util.Map;


/**
 * 门店审核事件处理
 *
 * @Author ibeeking
 */
@Component
public class StoreCheckNotifyHandler  implements WxMpMessageHandler {
    protected Logger logger = LoggerFactory.getLogger(getClass());
    @Override
    public WxMpXmlOutMessage handle(WxMpXmlMessage wxMessage,
                                    Map<String, Object> context, WxMpService wxMpService,
                                    WxSessionManager sessionManager) {
        String body = "门店审核功能接入中，敬请期待";
        return new TextBuilder().content(body).fromUser(wxMessage.getToUser()).toUser(wxMessage.getFromUser()).build();
    }

}
